package data;

import java.util.ArrayList;
import java.util.List;

// 路径类
public class Path {
    public final List<String> points;

    public Path() {
        this.points = new ArrayList<>();
    }

    public void addPoint(String point) {
        points.add(point);
    }

    public void addPoints(List<String> points) {
        this.points.addAll(points);
    }

    @Override
    public String toString() {
        return String.join(" → ", points);
    }
}